package com.loser.rpc.room.fallback;

import com.loser.module.base.common.APiResponsePage;
import com.loser.module.base.common.ApiResponse;
import com.loser.rpc.room.dto.req.RoomPageReq;
import com.loser.rpc.room.dto.req.RoomSaveReq;
import com.loser.rpc.room.dto.req.RoomUpdateReq;
import com.loser.rpc.room.dto.resp.RoomInfoResp;
import com.loser.rpc.room.rpc.RoomFeign;
import org.springframework.stereotype.Component;

@Component
public class RoomFeignFallBack implements RoomFeign {

    @Override
    public ApiResponse<Boolean> save(RoomSaveReq req) {
        return ApiResponse.ok(false);
    }

    @Override
    public ApiResponse<Boolean> update(RoomUpdateReq req) {
        return ApiResponse.ok(false);
    }

    @Override
    public ApiResponse<Boolean> deleteById(Long id) {
        return ApiResponse.ok(false);
    }

    @Override
    public ApiResponse<RoomInfoResp> getById(Long id) {
        return ApiResponse.ok(new RoomInfoResp());
    }

    @Override
    public APiResponsePage<RoomInfoResp, Object> queryList(RoomPageReq req) {
        return APiResponsePage.ok();
    }

}
